home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / GraphicsCards / StormMesa / src / Makefile.OpenStep < prev    next >
Makefile  |  1999-02-04  |  4KB  |  140 lines

  1. # $Id: Makefile.OpenStep,v 1.1 1998/06/01 01:02:23 brianp Exp $
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  3.0
  5. # Copyright (C) 1995-1998  Brian Paul
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # Makefile for core library
  23.  
  24.  
  25. # $Log: Makefile.OpenStep,v $
  26. # Revision 1.1  1998/06/01 01:02:23  brianp
  27. # Initial revision
  28. #
  29.  
  30.  
  31.  
  32. ##### MACROS #####
  33.  
  34. VPATH = RCS
  35.  
  36. INCDIR = ../include
  37. LIBDIR = ../lib
  38.  
  39. CORE_SOURCES = accum.c alpha.c alphabuf.c api1.c api2.c apiext.c attrib.c \
  40.     bitmap.c blend.c clip.c colortab.c context.c copypix.c depth.c \
  41.     dlist.c drawpix.c enable.c eval.c feedback.c fog.c \
  42.     get.c hash.c image.c light.c lines.c logic.c masking.c matrix.c \
  43.     misc.c mmath.c pb.c pixel.c points.c pointers.c polygon.c \
  44.     quads.c rastpos.c readpix.c rect.c scissor.c shade.c span.c \
  45.     stencil.c teximage.c texobj.c texstate.c texture.c triangle.c \
  46.     varray.c winpos.c vb.c vbfill.c vbrender.c vbxform.c xform.c \
  47.     zoom.c
  48.  
  49. DRIVER_SOURCES = OSmesa/osmesa.c
  50.  
  51. ASM_SOURCES = 
  52.  
  53.  
  54. OBJECTS = $(ASM_SOURCES:.S=.o) $(CORE_SOURCES:.c=.o) $(DRIVER_SOURCES:.c=.o)
  55.  
  56.  
  57.  
  58. ##### RULES #####
  59.  
  60. .c.o:
  61.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  62.  
  63. .S.o:
  64.     $(CC) -c $(CFLAGS) $<
  65.  
  66. # UGH! These rules shouldn't be needed but IRIX's make (and others?) does!
  67. X/glxapi.o: X/glxapi.c
  68.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  69. X/fakeglx.o: X/fakeglx.c
  70.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  71. X/realglx.o: X/realglx.c
  72.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  73. X/xfonts.o: X/xfonts.c
  74.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  75. X/xmesa1.o: X/xmesa1.c
  76.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  77. X/xmesa2.o: X/xmesa2.c
  78.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  79. X/xmesa3.o: X/xmesa3.c
  80.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  81. X/xmesa4.o: X/xmesa4.c
  82.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  83. SVGA/svgamesa.o: SVGA/svgamesa.c
  84.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  85. OSmesa/osmesa.o: OSmesa/osmesa.c
  86.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  87. FX/fxapi.o: FX/fxapi.c
  88.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  89. FX/fxdd.o: FX/fxdd.c
  90.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  91. FX/fxddtex.o: FX/fxddtex.c
  92.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  93. FX/fxvsetup.o: FX/fxvsetup.c
  94.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  95. FX/fxsetup.o: FX/fxsetup.c
  96.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  97. FX/fxpoints.o: FX/fxpoints.c
  98.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  99. FX/fxlines.o: FX/fxlines.c
  100.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  101. FX/fxtris.o: FX/fxtris.c
  102.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  103. FX/fxquads.o: FX/fxquads.c
  104.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  105. FX/fxrender.o: FX/fxrender.c
  106.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  107. FX/fxtexman.o: FX/fxtexman.c
  108.     $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
  109.  
  110.  
  111.  
  112. ##### TARGETS #####
  113.  
  114. default:
  115.     @echo "Specify a target configuration"
  116.  
  117. clean:
  118.     -rm *.o *~ */*.o */*~
  119.  
  120. targets: $(LIBDIR)/$(GL_LIB)
  121.  
  122. # Make the library
  123. $(LIBDIR)/$(GL_LIB): $(OBJECTS)
  124.     $(MAKELIB) $(GL_LIB) $(MAJOR) $(MINOR) $(OBJECTS)
  125.     mv $(GL_LIB) $(LIBDIR)
  126.  
  127.  
  128. include ../Make-config
  129.  
  130. include depend
  131.  
  132.  
  133.  
  134. #
  135. # Run 'make dep' to update the dependencies if you change what's included
  136. # by any source file.
  137. dep: $(CORE_SOURCES) $(DRIVER_SOURCES)
  138.     makedepend -fdepend -Y -I../include $(CORE_SOURCES) $(DRIVER_SOURCES)
  139.